package com.zjk.dao;

import com.zjk.pojo.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    //根据用户名与密码查询用户
    SysUser getUserNyUsernameAndPwd(SysUser sysUser);
    //用户列表
    List<SysUser> getAllUsers(@Param("username") String username);
    //根据id查询
    SysUser getUserById(@Param("id") Integer id);
    //新增用户
    int addUser(SysUser sysUser);

    //修改用户
    int editUser(SysUser sysUser);
    //删除用户
    int delById(@Param("id") Integer id);
    //批量删除
    int delAll(@Param("ids")List<Integer> ids);
    //根据用户名查询
    SysUser getUserByUsername(String username);
}
